package com.ruoyi.mhrb.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mhrb.platform.mapper.MhrbCustomerMapper;
import com.ruoyi.mhrb.platform.domain.MhrbCustomer;
import com.ruoyi.mhrb.platform.service.IMhrbCustomerService;

/**
 * 客服配置Service业务层处理
 * 
 * @author mhrb
 * @date 2024-11-25
 */
@Service
public class MhrbCustomerServiceImpl implements IMhrbCustomerService 
{
    @Autowired
    private MhrbCustomerMapper mhrbCustomerMapper;

    /**
     * 查询客服配置
     * 
     * @param customerId 客服配置主键
     * @return 客服配置
     */
    @Override
    public MhrbCustomer selectMhrbCustomerByCustomerId(Long customerId)
    {
        return mhrbCustomerMapper.selectMhrbCustomerByCustomerId(customerId);
    }

    /**
     * 查询客服配置列表
     * 
     * @param mhrbCustomer 客服配置
     * @return 客服配置
     */
    @Override
    public List<MhrbCustomer> selectMhrbCustomerList(MhrbCustomer mhrbCustomer)
    {
        return mhrbCustomerMapper.selectMhrbCustomerList(mhrbCustomer);
    }

    /**
     * 新增客服配置
     * 
     * @param mhrbCustomer 客服配置
     * @return 结果
     */
    @Override
    public int insertMhrbCustomer(MhrbCustomer mhrbCustomer)
    {
        return mhrbCustomerMapper.insertMhrbCustomer(mhrbCustomer);
    }

    /**
     * 修改客服配置
     * 
     * @param mhrbCustomer 客服配置
     * @return 结果
     */
    @Override
    public int updateMhrbCustomer(MhrbCustomer mhrbCustomer)
    {
        return mhrbCustomerMapper.updateMhrbCustomer(mhrbCustomer);
    }

    /**
     * 批量删除客服配置
     * 
     * @param customerIds 需要删除的客服配置主键
     * @return 结果
     */
    @Override
    public int deleteMhrbCustomerByCustomerIds(Long[] customerIds)
    {
        return mhrbCustomerMapper.deleteMhrbCustomerByCustomerIds(customerIds);
    }

    /**
     * 删除客服配置信息
     * 
     * @param customerId 客服配置主键
     * @return 结果
     */
    @Override
    public int deleteMhrbCustomerByCustomerId(Long customerId)
    {
        return mhrbCustomerMapper.deleteMhrbCustomerByCustomerId(customerId);
    }
}
